<template>
	<view class="content">
		<view class="downloading">
			<view class="title">
				下载中
			</view>
			<view class="name">
				<image src="../../static/389.png" mode=""></image>
			</view>
		</view>
		<view class="downloaded">
			<view class="title">
				已下载
			</view>
			<view class="name">
				<image src="../../static/389.png" mode=""></image>
			</view>
		</view>
		<view class="low">
			<view class="space">
				剩余储存空间128.0GB
			</view>
			<view class="control">
				<view class="li">
					<image src="../../static/384.png" mode=""></image>
					<view class="lilist">
						全部开始
					</view>
				</view>
				<view class="li">
					<image src="../../static/384.png" mode=""></image>
					<view class="lilist">
						全部暂停
					</view>
				</view>
				<view class="li">
					<image src="../../static/388.png" mode=""></image>
					<view class="lilist">
						全部开始
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				selectedIdx: 0,
				itemList: [{
						name: '全部订单'
					},
					{
						name: '待付款'
					},
					{
						name: '待使用'
					},
					{
						name: '	退换/售后'
					}
				],
			};
		},

		onLoad(options) {

		},
		onShow() {
			this.aa()
			this.bb()
		},
		methods: {
			aa() {
				uni.getSavedFileList({
					success: function(res) {
						console.log(res.fileList);
					}
				});
			},
			bb() {
				uni.getSavedFileInfo({
					filePath: 'unifile://somefile', //仅做示例用，非真正的文件路径
					success: function(res) {
						console.log(res.size);
						console.log(res.createTime);
					}
				});

			},
			learningdetails() {
				uni.navigateTo({
					url: '/pages/study/learningdetails'
				})
			},
			selectItem(index) {
				this.selectedIdx = index;
			},
		},

	};
</script>

<style scoped lang="less">
	.content {
		width: 100%;
		min-height: 100vh;
		box-sizing: border-box;
		// padding: 16rpx;
		padding-top: 20rpx;
		background: #F7F7F7;
		// padding-top: 20rpx;
		padding-bottom: 250rpx;
	}

	.downloading {
		.title {
			color: #333333;
			font-size: 28rpx;
			font-weight: 500;
			margin-left: 38rpx;
			margin-bottom: 26rpx;
		}

		.name {
			padding: 54rpx 80rpx 172rpx 64rpx;
			background: #ffffff;
			text-align: center;

			image {
				width: 332rpx;
				height: 318rpx;
			}
		}
	}

	.downloaded {
		.title {
			color: #333333;
			font-size: 28rpx;
			font-weight: 500;
			margin-left: 38rpx;
			margin-bottom: 26rpx;
			margin-top: 26rpx;
		}

		.name {
			padding: 54rpx 80rpx 172rpx 64rpx;
			background: #ffffff;
			text-align: center;

			image {
				width: 332rpx;
				height: 318rpx;
			}
		}
	}

	.low {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;

		.space {
			width: 100%;
			height: 64rpx;
			opacity: 1;
			background: #ff9c33;
			color: #ffffff;
			text-align: center;
			line-height: 64rpx;
			font-size: 28rpx;
			font-weight: 500;
		}

		.control {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 32rpx 54rpx;
			background: #ffffff;

			.li {
				text-align: center;

				image {
					width: 32rpx;
					height: 28rpx;
				}
			}
		}
	}
</style>